home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 051-075 / disk_064 / docs / addenda / dppv < prev    next >
Text File  |  1992-05-06  |  2KB  |  67 lines

  1.  
  2. IFF FORM / CHUNK DESCRIPTION
  3. ============================
  4.  
  5. Form/Chunk ID:   Chunk DPPV  (DPaint II ILBM perspective chunk)
  6.  
  7. Date Submitted:  12/86 (?)
  8. Submitted by:    Dan Silva 
  9.  
  10. Chunk Description:
  11.  
  12.    The DPPV chunk describes the perspective state of a DPaint ILBM.
  13.  
  14. Chunk Purpose:
  15.  
  16.    For reinstatement of the perspective state.
  17.  
  18. Chunk Spec:
  19.  
  20. /* The chunk identifier DPPV */
  21. #define ID_DPPV    MakeID('D','P','P','V')
  22.  
  23. typedef LONG LongFrac;
  24. typedef struct ( LongFrac x,y,z; )  LFPoint;
  25. typedef LongFrac  APoint[3];
  26.  
  27. typedef union {
  28.    LFPoint l;
  29.    APoint  a;
  30.    } UPoint;
  31.  
  32. /* values taken by variable rotType */
  33. #define ROT_EULER  0
  34. #define ROT_INCR   1
  35.  
  36. /* Disk record describing Perspective state */
  37.  
  38. typedef struct {
  39.    WORD     rotType;           /* rotation type */
  40.    WORD     iA, iB, iC;        /* rotation angles (in degrees) */
  41.    LongFrac Depth;             /* perspective depth */
  42.    WORD     uCenter, vCenter;  /* coords of center perspective,
  43.                                 * relative to backing bitmap,
  44.                                 * in Virtual coords
  45.                                 */
  46.    WORD     fixCoord;          /* which coordinate is fixed */
  47.    WORD     angleStep;         /* large angle stepping amount */
  48.    UPoint   grid;              /* gridding spacing in X,Y,Z */
  49.    UPoint   gridReset;         /* where the grid goes on Reset */
  50.    UPoint   gridBrCenter;      /* Brush center when gris was last on,
  51.                                 * as reference point
  52.                                 */
  53.    UPoint   permBrCenter;      /* Brush center the last time the mouse
  54.                                 * button was clicked, a rotation performed,
  55.                                 * or motion along "fixed" axis
  56.                                 */
  57.    LongFrac rot[3][3];         /* rotation matrix */
  58.    } PerspState;
  59.  
  60.  
  61. SUPPORTING SOFTWARE
  62. ===================
  63.  
  64. DPaint II   by Dan Silva for Electronic Arts
  65.  
  66.  
  67.